package com.whz.mlc.hotkey;

import lombok.Builder;
import lombok.Data;

/**
 * @author whz
 * 2021/8/9
 */
@Data
@Builder
public class HotKeyProperty {
    /**
     * 滑动窗口时间间隔s
     */
    @Builder.Default
    private int windowPeriodSeconds = 30;
    /**
     * 热点排序周期min
     */
    @Builder.Default
    private int hotKeyPeriodMinutes = 10;
    /**
     * hotkey的最大统计个数
     */
    @Builder.Default
    private int hotKeyQueueSize = 100;

    /**
     * 定时推送hot key的 cron表达式 默认 每隔30s一次
     */
    @Builder.Default
    private String cron = "0/30 * * * * ?";


    /**
     * allow custom a hot key counter
     */
    private HotKeyCounter hotKeyCounter;
}